package com.geek.water.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("message_log")
@ApiModel(description = "消息发送日志表")
public class MessageLog implements Serializable {
    @ApiModelProperty("主键，自增日志ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联模板ID")
    @TableField("template_id")
    private Long templateId;

    @ApiModelProperty("接收者")
    @TableField("recipient")
    private String recipient;

    @ApiModelProperty("发送时间")
    @TableField("sent_at")
    private LocalDateTime sentAt;

    @ApiModelProperty("发送状态")
    @TableField("status")
    private String status;
}

